package com.study.mapper;

import com.study.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {

    //查询
    public List<Book> selectAll();

    //插入
    int insertData(Book book);

    //删除
    int deleteData(Integer id);

    //编辑
    int updateData(Book book);

    //条件查询
    List<Book> selectAllLike(Book book);
}
